﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:OS.GenericDashboardViewer.DataModel"
                    xmlns:winForms="clr-namespace:System.Windows.Forms;assembly=System.Windows.Forms"
                    xmlns:ns="clr-namespace:OS.GenericDashboardViewer.WPF"
                   >
    <DataTemplate x:Key="WebViewPart">
        <WindowsFormsHost ns:WebBrowserUtility.BindableSource="{Binding Url}">
            
        </WindowsFormsHost>
        
    </DataTemplate>
    <DataTemplate x:Key="TextViewPart">
           <Grid >
    	
        <Grid.RowDefinitions>
        	<RowDefinition Height="0.1*" />
        	<RowDefinition Height="0.1*" />
            <RowDefinition Height="0.1*" />
        	<RowDefinition Height="*" />
        </Grid.RowDefinitions>
		<Border Grid.Row="1" Margin="0,0,34,0"  CornerRadius="0,6,6,0" BorderThickness="1,0,0,0" >
			<Border.Background>
				<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
							<GradientStop Color="#FFDADADA" Offset="1"/>
							<GradientStop Color="#FFF3F3F3"/>
						</LinearGradientBrush>
			</Border.Background>
			<Image Grid.Row="1" Source="Images/2.JPG" HorizontalAlignment="Right" VerticalAlignment="Center"  />
		</Border>
		
        <ItemsControl ItemsSource="{Binding Lines}" Grid.Row="3">
            <ItemsControl.ItemTemplate>
                <DataTemplate>
                    <TextBlock Text="{Binding}" FontSize="32" HorizontalAlignment="Left" Margin="50,0,0,0"/>
                </DataTemplate>
            </ItemsControl.ItemTemplate>
			 </ItemsControl>
        <TextBlock Grid.Row="1" FontSize="48" Grid.ColumnSpan="2" FontWeight="Bold" FontFamily="Times New Roman" Text="{Binding Title}" HorizontalAlignment="Left" Margin="30,0,0,0" />     
    </Grid>
    </DataTemplate>
 
    
</ResourceDictionary>